package dao;

import org.apache.ibatis.annotations.Param;

import entity.SuccessKilled;

public interface SuccessKilledDao {
	/**
	 * 插入秒杀成功的记录，克过滤重复
	 * @param seckillId
	 * @param userPhone
	 * @return 插入的行数量
	 */
	int insertSuccessKilled(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);
	/**
	 * 根据id查询成功明细表所有字段
	 * @param seckillId
	 * @return
	 */
	SuccessKilled queryByIdWithSeckill(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);
	
}